|
pac1811 2.2.0
|
PAC1811 Click example. More...
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
PAC1811 Click example.
This example demonstrates the use of the PAC1811 Click board for current, voltage, and power monitoring. The application reads and logs bus voltage, sense current, power values, as well as min/max and average measurements.
The demo application is composed of two sections :
Initializes the logger and PAC1811 Click driver, then applies the default configuration.
Periodically refreshes the measurements and logs voltage, current, and power data. Updates are provided every second.
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |